function mail(code){
 return new Promise((resolve, reject) => {
  wx.request({
    url: `http://localhost:4008/user/mail`,
    data:code,
    method: "POST",
    success(e){    
       resolve(e)
    },
    fail(err){
      reject(err)
    }
  })
 })
}

export default mail